package com.pets.springboot_petshop.entity;


import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
/**
 * @Author: wxk
 * @Email: 2089967794@qq.ocm
 * @Date: 2024/10/10 上午9:13 周四
 * @Description: 管理员实体类
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Admin implements Serializable {
    private int id;
    private String username;
    private String password;
    private String role;
    private String email;
    private LocalDateTime create_time;
    private LocalDateTime update_time;
    private String code;
    private String verificationCode;// 额外字段用于存储验证码

    public Admin(String username, String password){
        this.username = username;
        this.password = password;
    }
}
